import Layout from '@/layout'

export default {
  path: '/order',
  component: Layout,
  redirect: '/order/list',
  name: 'Order',
  meta: { title: '订单管理', icon: 'shopping', noCache: true, roles: ['order'] },
  children: [
    {
      path: 'list',
      name: 'OrderList',
      component: () => import('@/views/order/list'),
      meta: { title: '订单列表', icon: 'star', noCache: true }
    },
    {
      path: 'order-view/:id',
      // name: 'OrderView',
      component: () => import('@/views/order/order-view'),
      meta: { title: '订单详情', icon: 'star', noCache: true },
      hidden: true
    },
    {
      path: 'group',
      name: 'OrderGroup',
      component: () => import('@/views/order/group'),
      meta: { title: '拼团订单', icon: 'star', noCache: true },
      hidden: true
    },
    {
      path: 'group-view/:id',
      // name: 'GroupView',
      component: () => import('@/views/order/group-view'),
      meta: { title: '拼团详情', icon: 'star', noCache: true },
      hidden: true
    },
    {
      path: 'comment/:id',
      // name: 'GroupView',
      component: () => import('@/views/order/comment'),
      meta: { title: '评论列表', icon: 'star', noCache: true },
      hidden: true
    }
  ]
}
